import Vue from 'vue'
import Router from 'vue-router'
import NotFoundPage from '@/components/404Page.vue'
import HomePage from '@/components/home/HomePage.vue'
import ChangeRequestForm from '@/components/change-request-form/ChangeRequestForm.vue'
import ViewRequestForm from '@/components/change-request-form/ViewRequestForm.vue'
import TempUserListMaintenance from '@/components/maintenance/TempUserListMaintenance.vue'
import TeamListMaintenance from '@/components/maintenance/TeamEndorserMaintenance.vue'
import RoleAuthorization from '@/components/maintenance/role-authorization/RoleAuthorization.vue'
import FunctionListAuthorization from '@/components/maintenance/function-list-authorization/FunctionListAuthorization.vue'
import EmailTemplateMaintenance from '@/components/maintenance/EmailTemplateMaintenance.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HomePage',
      component: HomePage,
      meta: {
        name: 'Team List'
      }
    },
    {
      path: '/changeRequestForm',
      name: 'ChangeRequestForm',
      component: ChangeRequestForm
    },
    {
      path: '/viewRequestForm/:id',
      name: 'ViewRequestForm',
      component: ViewRequestForm
    },
    {
      path: '/tempUserList',
      name: 'TempUserListMaintenance',
      component: TempUserListMaintenance
    },
    {
      path: '/teamEndorserList',
      name: 'teamEndorserList',
      component: TeamListMaintenance
    },
    {
      path: '/roleAuthorization',
      name: 'RoleAuthorization',
      component: RoleAuthorization
    },
    {
      path: '/functionListAuthorization',
      name: 'FunctionList',
      component: FunctionListAuthorization
    },
    {
      path: '/emailTemplateList',
      name: 'EmailTemplateList',
      component: EmailTemplateMaintenance
    },
    {
      path: '*',
      component: NotFoundPage
    }
  ]
})
